package design_pattern.singleton;

/**
 * @Author: DRevelation
 * @Date: 2021/7/9 14:59
 */
public class Emperor {

    private static final Emperor emperor = new Emperor();

    private Emperor() {
        System.out.println("私有构造器");
    }

    public static Emperor getInstance() {
        return emperor;
    }

    public void say() {
        System.out.println("I'm a Emperor");
    }

}
